Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

limit ancient pack budget for shrinking #2205

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

jeffwashington
Copy link

Problem

Testing with skipping rewrites and ancient packing have resulted in a steady state where we have too many ancient storages that need to be 'shrunk'. These already large, ancient storages dominate the budget of a maximum of 10 ancient append vecs of ideal size. The result is that packing fails to make progress on keeping a limit on the number of ancient storages/roots.

Summary of Changes

Limit the shrink budget based on the overall limit of ideal storages to produce.

Fixes #

Copy link

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

The new threshold being the min of either (some percentage of the alive bytes) or (some percentage of the max ideal size) makes sense.

@brooksprumo
Copy link

All of CI has passed except for the one broken downstream projects test. Since this PR doesn't touch anything program-related, I think it is safe to merge.

#2208 will fix the CI. An alternative would be to rebase and pick up this change once the PR is merged, but then this PR will need to go through all of CI again.

@jeffwashington jeffwashington merged commit 5b6485a into anza-xyz:master Jul 19, 2024
39 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants